//
//  VCScan.m
//  express
//
//  Created by mac1 on 15/9/9.
//  Copyright (c) 2015年 longchen. All rights reserved.
//

#import "VCScan.h"

//#import "ZJQRCodeScanner.h"

@interface VCScan ()

@end

@implementation VCScan

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.view.backgroundColor = [UIColor whiteColor];
//    
//    [self.view addImageViewWithFrame:self.view.bounds image:@"front.png"];
//    
//    //
//    [[ZJQRCodeScanner sharedInstance] scanFromView:self.view result:^(NSString *resultString) {
//        NSLog(@"resultString = %@", resultString);
//        
//        //如果是网址,直接打开网址
//        if([resultString hasPrefix:@"http://"])
//        {
//            [[UIApplication sharedApplication] openURL:[NSURL URLWithString:resultString]];
//        }
//    }];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
